import counterAction from '../actions/counterAction';
// import {changeValue} from '../constants/counterConst';
import action, {changeValue} from '../actions/counterAction';

const changeValueInitialState = {currentValue: 0};
export const changeValueReducer = (state = changeValueInitialState, action) => {
    switch (action.type) {
        case changeValue:
            return {
                currentValue: state.currentValue + action.value
            }
            
        default:
            return state
    }
}

